<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<table border="1" width="100%" cellpadding="0" cellspacing="0" align="center">
		<tr>

			<td>Employee ID</td>
			<td>Employee Name</td>
			<td>leave_code</td>
			<td>Apply Date</td>
			<td>Approved Date</td>
			<td>From Date</td>
			<td>To Date</td>
			<td>Status</td>
			<td>Employee Comment</td>
		</tr>
		<c:forEach items="${leaveApplicationList}" var="leaveApplicationList">
			<tr>
				<td>${leaveApplicationList.employee.employeeId}</td>
				<td>${leaveApplicationList.employee.name}</td>
				<td>${leaveApplicationList.leaveType.leaveCode}</td>
				<td>${leaveApplicationList.applyDate}</td>
				<td>${leaveApplicationList.approveDate}</td>
				<td>${leaveApplicationList.fromDate}</td>
				<td>${leaveApplicationList.toDate}</td>
				<td>${leaveApplicationList.status}</td>
				<td>${leaveApplicationList.employeeComment}</td>
				
			</tr>
		</c:forEach>
		
		</table>
		 <a href="#">Print</a> | <a href="${pageContext.request.contextPath}/manager/ApproveRejectLeave/${loggedEmployee.employeeId}">Go back to Home Page</a>

</body>
</html>